﻿@model C2E2C.Web.ViewModels.UserRegisterModel

@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_LayoutWithoutMenu.cshtml";
}

<h2>会员帐户注册</h2>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset style="margin: 12px 30px;">
        <legend>请输入您的个人资料</legend>
        <ul class="form-items span-20">
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.Email)
                        @Html.TextBoxFor(model => model.Email, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info" style="font-size: 11px;">
                            请填写您的学校/公司邮箱，用于您的身份认证，非学校/公司邮件无法获得人工认证</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.Email)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.UserName)
                        @Html.TextBoxFor(model => model.UserName, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info" style="font-size: 11px;">
                            用户ID由26个英文字母（a-z，不区分大小写）、10个阿拉伯数字（0-9）、破折号（-）组成，长度为3-20位；一旦注册成功，不可修改</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.UserName)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.RealName)
                        @Html.TextBoxFor(model => model.RealName, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info">
                            本网站实行实名制,请填写您的真实姓名（中文名或者英文名）</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.RealName)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.Password)
                        @Html.TextBoxFor(model => model.Password, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info">
                            您的密码长度不得少于6位，密码可由26个英文字母（a-zA-Z，区分大小写）、10个阿拉伯数字（0-9）、键盘中所有可输入的其它字符（如：$ # % ^ & ...）组成</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.Password)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.ConfirmPassword)
                        @Html.TextBoxFor(model => model.ConfirmPassword, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info">
                            请再输入一遍您上面所填写的密码
                        </div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.ConfirmPassword)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.Company)
                        @Html.TextBoxFor(model => model.Company, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info">
                            请填写您所在的公司/学校名称，允许的公司/学校名称为 4-64 个字符</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.Company)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <ul>
                    <li class="span-7">
                        @Html.LabelFor(model => model.Phone)
                        @Html.TextBoxFor(model => model.Phone, new { @class = "span-7" })
                    </li>
                    <li class="span-11 push-2">
                        <div class="info">
                            电话区号及号码均需填写完整，您的电话号码不会被公开。我们将对您的电话号码严格保密</div>
                        <div class="editor-field">
                            @Html.ValidationMessageFor(model => model.Phone)
                        </div>
                    </li>
                </ul>
            </li>
            <li>
                <div class="push-3 span-2">
                    <input class="span-2" type="submit" value="提交" />
                </div>
            </li>
        </ul>
    </fieldset>
}
